<?php

namespace app\model;

use think\Model;

class Banner extends Model
{
    public static function getBanner($status = 1, $isdelete = 0)
    {
        return self::where('status', $status)->where('isdelete', $isdelete)->select();
    }

    public function getImgAttr($v)
    {
        return config('site.imgUrl') . $v;
    }
}
